Comparison operator rule examples

Comparison operator rule examples

When using variables in rules you must state the value, or range of acceptable values, that are sufficient to satisfy the rule. To do this, you must use one of the logical operators.

 

Operator Example
Less than

the pre-2007 rules apply if

the date of claim < 2007-01-01

Greater than

the new rates apply if

the date of investigation > 2007-06-30

Less than or equal to

the person can apply for Immunization Allowance for the child if

the date of claim <= the child's second birthday

Greater than or equal to

the individual qualifies for age pension if

the individual's age >= 65

Equals

the person is 18 if

the person's age = 18

Not equal to

the person's salary has been adjusted if

the new salary <> the old salary

 

TIP: The localized syntax for these functions may be viewed:

 

See also: